//
//  LZCateCell.m
//  tuangou
//
//  Created by quan jimmy on 11-12-7.
//  Copyright 2011年 tencent. All rights reserved.
//

#import "LZCateCell.h"


@implementation LZCateCell
@synthesize cate,tag,titleLable,textLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
//        avatarImageView = [[AvatarImageView alloc] init];
//        avatarImageView.navigationController = navigationController;
//        [avatarImageView setFrame:CGRectMake(kLeftSpace, kTopSpace, kAvatarWidth, kAvatarHeight)];
//        [self.contentView addSubview:avatarImageView];
        
        
        titleLable = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 150, 16)];
        titleLable.font = [UIFont systemFontOfSize: 14]; 
        titleLable.textColor = [UIColor colorWithRed:51.0/255 green:51.0/255 blue:51.0/255 alpha:1.0];
        [self.contentView addSubview:titleLable];
        

        
//        textLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 31, 260, 1000)];
//        textLabel.lineBreakMode = UILineBreakModeWordWrap; 
//        textLabel.numberOfLines = 0; 
//        
//        UIFont *font = [UIFont systemFontOfSize: 14];
//        
//        textLabel.font = font;
//        textLabel.textColor = UIColorFromRGB(0x333333);
//        [self.contentView addSubview:textLabel];
        
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void) setCate:(Category *)aCate
{
	if (aCate!=cate&&aCate) {
		[aCate retain];
		[cate release];
		cate=aCate;
        
        titleLable.text = cate.name;

//        articleImageView.imageURL = nil;
//        articleImageView.placeholderImage = [UIImage imageNamed:@"imagePlaceHolder.png"];
//        if (article.image) {
//            articleImageView.imageURL = [NSURL URLWithString: [Utils getImageProxyUrl: article.image]];
//        }
    }
}


- (void)dealloc
{
    [super dealloc];
}

@end
